package com.ztgf.commodity.models.bo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class CommodityCategoryUpdateBO implements Serializable {
    @ApiModelProperty(value = "ids")
    private String ids;

    @ApiModelProperty(value = "分成比例")
    private BigDecimal dividendScale;

    @ApiModelProperty(value = "0 立即生效，1延迟生效")
    private Integer type;

    @ApiModelProperty(value = "分成比例生效时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date effectiveTime;
}
